package com.yj.timecapsule.common.error;

import com.yj.timecapsule.common.enums.ErrorCode;
import lombok.Getter;

/**
 * @author Sean
 * businessException
 */
@Getter
public class BusinessException extends RuntimeException{
    private ErrorCode errorCode;
    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }
    public BusinessException(ErrorCode errorCode){
        this.errorCode = errorCode;
    }
}
